Fill in missing error parameters to DecodeHeader and DecodeColormap.
authorManish Singh <yosh@gimp.org>
Thu, 29 Nov 2001 01:39:34 +0000 (01:39 +0000)
committerManish Singh <yosh@src.gnome.org>
Thu, 29 Nov 2001 01:39:34 +0000 (01:39 +0000)
2001-11-28  Manish Singh  <yosh@gimp.org>

        * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Fill
        in missing error parameters to DecodeHeader and DecodeColormap.

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-bmp.c

index ac046bdff94c6988deade512c0c75e2b91c3a65b..abfe6f89cc097f9d081ed32930b28e5f36c3b5b5 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-28  Manish Singh  <yosh@gimp.org>
+
+       * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load_increment): Fill
+       in missing error parameters to DecodeHeader and DecodeColormap.
+
 2001-11-21  Federico Mena Quintero  <federico@ximian.com>
 
        Fix Ximian bug #12125; merged from gdk-pixbuf stable.
index 9ee65013da7cf2f6e976c92ec93bfcfc765744f5..225cbde3435990b57ae19d6fe282c1ec1fa6ca00 100644 (file)
@@ -531,7 +531,7 @@ OneLine24 is the 24 bpp-version.
 */
 static void OneLine32(struct bmp_progressive_state *context)
 {
-       gint X; int i;
+       int i;
        guchar *pixels;
        guchar *src;
 
@@ -966,13 +966,15 @@ gdk_pixbuf__bmp_image_load_increment(gpointer data,
 
                switch (context->read_state) {
                case READ_STATE_HEADERS:
-                       if (!DecodeHeader (context->buff, context->buff + 14, context))
+                       if (!DecodeHeader (context->buff,
+                                          context->buff + 14, context,
+                                          error))
                                return FALSE;
 
                        break;
 
                case READ_STATE_PALETTE:
-                       DecodeColormap (context->buff, context);
+                       DecodeColormap (context->buff, context, error);
                        break;
 
                case READ_STATE_BITMASKS: